cc.Class({
    extends: cc.Component,

    properties: {
        button: cc.Node,
        label: cc.Node,
        // defaults, set visually when attaching this script to the Canvas
    },

    // use this for initialization
    onLoad: function () {
        this.label.string = '王校长的热狗';
        cc.log(this.text);
    },
    labelclicked:function(event, customEventData){
        cc.director.loadScene('game');
    },
    // called every frame
    update: function (dt) {

    },
});
